package com.domain.dao;

import com.domain.pojo.Comment;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface CommentMapper {
    int deleteByPrimaryKey(String id);

    int insert(Comment record);

    int insertSelective(Comment record);

    Comment selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(Comment record);

    int updateByPrimaryKey(Comment record);

    List<Comment> selectBypublishId(@Param("publishId") String publishId);

    List<Map<String, Object>> selectBypublishIdDetail(@Param("publishId") String publishId);
}